{% extends "admin/admin_layout.html" %}
{% block admin_title %}普通用户列表{% endblock %}
{% block admin_head %}
<script type="text/javascript" src="/static/js/JsUser.js"></script>
{% endblock %}
{% set perm = request.perm_const %}
{% block admin_content %}
{% set perm = request.perm_const %}
<div class="sect">
	<h2>普通用户列表
    	<span class="sub">共{{ page.paginator.count }}个用户</span>
        <span class="extra">
        	<form action="." method="post">
                <label>查找用户昵称/用户名：</label>
                <input type="text" id="s_name" name="s_name"{%if name%} value="{{name}}"{%endif%}  />
                <input type="submit" class="button btns" value="搜索" />
            </form>
        </span>
    </h2>
    <div class="sectContent">
    	<table id="normal_user_table" class="gTable">
        	<tr>
                <th class="m4">ID</th>
                <th class="m0">用户</th>
                <th class="m6">来自</th>
                <th class="m10"><a href="?{{s}}orderby=created">注册时间</a></th>
                <th class="m10"><a href="?{{s}}orderby=login">最后登录</a></th>
                <th class="m4">屏蔽</th>
            </tr>
            {% for obj in page.object_list %}
            <tr{% if loop.index % 2 == 0 %} class="odd"{% endif %}>
                <td class="m4">{{ obj.id }}</td>
                <td>
                    <a href="/user/{{ obj.id }}/">{{ obj.nick_name }}</a>
                    (<span class="hint">{{ "%s  %s"|format(obj.name,request.utils.getGenderArea(obj,False)) }}</span>)<br />
                </td>
                <td class="m6">{{obj.getUserType()}}</td>
                <td class="m10">
                    {{ request.utils.goodTime(obj.created) }}
                </td>
                <td class="m10">
                    {{ request.utils.goodTime(obj.login_time) }}
                </td>
                <td class="m4">
                </td>
            </tr>
            {% endfor %}
        </table>
        {% include "paginator.html" %}
    </div>
</div>
{% endblock %}
{% block popup_content %}
<script type="text/javascript">
</script>
{% endblock %}
